Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['f2 fd', 'ag f2 fd gfed |1 cABc defg'  
X:1
L:1/8
M:4/4
K:D
 f2 fd f2 fd | gfed cdeg | f2 fd gfed |1 cABc d2 d2 :|2 cABc defg |: a2 af b2 bf | g2 ge a2 ag | 
 f2 fd gfed |1 cABc defg :|2 cABc d2 d2 |]  