Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:2/2
K:D
['Adeg f2 e2 Adfa g2 f2 eAfA', 'defg afdA defg a2 gf'  
X:1
L:1/8
M:2/2
K:D
|: Adeg f2 e2 | Adfa g2 f2 | eAfA gAfA | edcB AGFE | Adeg f2 e2 | Adfa g2 f2 | eAfA gAfA | 
 edce d2 d2 :: defg afdA | defg a2 gf | gaba gfed | caaa agfe | defg afdA | defg a2 gf | 
 eAfA gAfA | edce d2 f2 :|  