Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:4/4
K:D
['A2 FA DAFA', 'f2 fe defd aggf g2 gf edcB'  
X:1
L:1/8
M:4/4
K:D
|: f3 g fedB | A2 FA DAFA | B2 GB DBGB | A2 FA DAFA | f3 g fedB | A2 FA DAFA | BGBd cAce | 
 d2 dc d2 de :| f2 fe defd | aggf g2 gf | edcB Aceg | baa^g a3 =g | f2 fe defd | aggf g2 gf | 
 edcB Aceg | fddc d2 de |]  