Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:4/4
K:G
['B>GD>G B>GD>G'  
X:1
L:1/8
M:4/4
K:G
 dc |"G" B>GD>G B>GD>G |"G" (3(gag) f>g e2 d>c |"G" B>GD>G B>GD>G |"G" d>cB>c"D7" A2 d>c | 
"G" B>GD>G B>GD>G |"G" (3(gag) f>g"C" e2 d>c |"G" B>gf>g"D7" e>cA>F |"G" G2 B2 G2 :| g>a | 
"Em" b>ag>f e>fg>a |"Em" b>ag>f"A7" e2 f>g |"D" a>gf>e d>ef>g |"D" a>gf>e"Bm" d2 e>f | 
"G" g>fg>d (3(eef)"G" d>B |"Am" c>BA>B c>de>f |"G" g>fg>d"D7" e>cA>F |"G" G2 B2 G2 :|  