Build a musical piece by incorporating the given motif into the prescribed form.
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
['d2 B AFA', 'F2 G'  
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
 d2 B AFA AFA | d2 d def e2 c | d2 B AFA ABc | d2 D DEF E2 D :| F2 G AFD AFD | F2 G ABc dcA | 
 F2 G AFD AFD | d2 D DEF E2 D :|  