Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['A2 FA DAFA', 'f2 fg fedc Bggf g2 gf edcB'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 e | fedf edcB | A2 FA DAFA | B2 GB EBGB | A2 FA DAFA | fedf edcB | A2 FA DAFA | B2 ed cABc | 
 eddc d3 :| e | f2 fg fedc | Bggf g2 gf | edcB ABcd | baag a2 ag | f2 fg fedc | Bggf g2 gf | 
 edcB ABcd | eddc d3 :|  