Develop musical compositions that maintain the outlined structure and integrate the provided motif
X:1
L:1/8
M:4/4
K:D
['a4 a z d2 Acec d3 c'  
X:1
L:1/8
M:4/4
K:D
|: FG |"D" ABAF ABAF |"D" A2 fe d2 c2 |"G" BdBG BdBG |"G" B2 gf e2 d2 |"A" c3 d cdcB | 
"A" A2 eg f2 ec |1"D" dcde"F#m" fefg |"D" a4 a z :|2"D" d2 fd"A" Acec |"D" d3 c de |: fg | 
"D" a4 a2 ^ga |"D" b2 a2 g2 f2 |"G" g2 gd BGBd |"G" g2 f2 e2 d2 |"A" c3 B cdcB |"A" A2 eg f2 ec |1 
"D" dcde"F#m" fe |"F#m" fg"D" a4 a z :|2"D" d2 fd"A" Acec |"D" d3 c d2 ||  