Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:3/4
K:G
['d^c d2', 'd6 d4 (3de=f edcB c2 e^c A2'  
X:1
L:1/8
M:3/4
K:G
 g2 d2 cd | B3 dce | d2 BGAF | G4 (3ABc | B2 d^c d2 | A2 d^c d2 | egfga^c | d6 :: d4 (3de=f | 
 edcB c2 | e^c A2 (3efg | fed^c d2 | defdef | g2 fedc | B2 AGAF | G6 :|  