Develop musical compositions that maintain the outlined structure and integrate the provided motif
X:1
L:1/8
M:4/4
K:D
['E>(A,{B,} (3A,G,A,)', 'd2 fd{c}dc dfaf edcd efge egbg'  
X:1
L:1/8
M:4/4
K:D
"G" B2 BA B3 d | BAGA Bcde |"D" fd d2 gfec | dBAF GE E2 |:S"D" FGAF DEFD | 
"A" E>(A,{B,} (3A,G,A,) E>(A,{B,} (3A,G,A,) |"D" FGAF DEFA |1"A" B2 ec"D" dBAG :|2 
"A" B2 ec"D" d3 e ||"D" fd{c}dc dfaf |"A" edcd efge |"D" fd{c}dc dfaf |"A" faeg"D" fd{c} d2 | 
"D" fd{c}dc dfaf |"A" edcd efge |"D" dfaf"A" egbg |"A" faeg"^D.S.""D" fdAG ||  