Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:4/4
K:D
['AFED AFED', 'D2 f2 ecBA ecBA d2 cB c2'  
X:1
L:1/8
M:4/4
K:D
 B2 | AFED AFED | BABc d2 cB | AFED AFED | EDEF G2 GB | AFEDAFED | defd c2 BA | BcdB AdcB | 
 AGFE D2 :| f2 | ecBA ecBA | d2 cB c2 BA | BABc d2 g2 | fagf e2 fg | afed ecBA | BcdB AFED | 
 defd BdcB | AGFE D2 :|  