Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:3/8
K:G
['gdB G>AG DEF', 'e f/g/a/g/f/e/ dDD def g2 c BA/G/A/F/', 'c AGF'  
X:1
L:1/8
M:3/8
K:G
 gdB |"^tr" G>AG | DEF | G/F/G/A/G | gdB |"^tr" G>AG | DEF | G3 :: def | g2 e | f/g/a/g/f/e/ | 
 dDD | def | g2 c | BA/G/A/F/ | G3 :: d2 e | B2 c | AGF | GDg | d2 e | B2 c | AGF | G3 :|  