Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:4/4
K:D
['A,2 EA,', 'cA (3AAA'  
X:1
L:1/8
M:4/4
K:D
 A,2 EA, FA,EA, | A,2 ED CA,A,G, | A,2 EA, FA,EF |1 G2 DC B,G,G,B, :|2 G2 DC B,G,G,d || 
 cA (3AAA eaed | cAeA cAAd | cA (3AAA agef | gddc BGGd | cA (3AAA eaed | cAeA cAAB | 
 =c2 dc (3BcB AG | GgdB GEDB, ||  