Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:4/4
K:D
['A3 d', 'f3 a g2 fg'  
X:1
L:1/8
M:4/4
K:D
 B | A3 d B2 dB | ADFD ADFD | A3 d B3 c | dfeg fdd :| e | f3 a g2 fg | eAcA eAcA | f3 a g2 fg | 
 afge fdd :|  