Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['G2 BG DGBG FGAB c2 Bc dggf', 'gagf d2'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 G2 BG DGBG | FGAB c2 Bc | dggf d2 eg | fdcA BGAF | G2 BG DGBG | FGAB c2 Bc | dggf d2 eg | 
 fdcA BG G2 :| gagf d2 ef | gfga bgaf | gagf d2 eg | fdcA BGBd | gagf d2 ef | gfga bgaf | 
 gbag fdeg |1 fdcA BG G2 :|2 fdcA B2 A2 | G4 z4 |]  