Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/8
M:4/4
K:G
['G2 DG BAGF GA (3(Bcd) g2'  
X:1
L:1/8
M:4/4
K:G
"G" G2 DG BAGF | GA (3(Bcd) g2 g2 |"G" gd (3(Bcd)"C" ecAG |"D" (3(EFG) AB (3(cBA) dB | 
"G" G2 DG BAGF | GA (3(Bcd) g2 z f |"G" gd (3(Bcd)"C" ec"D"AF |1"G" GB"D"AF"G" G2 z2 :|2 
"G" GB"D"AF"G" G2 FG |]:[K:D]"D" ABAG FAde | fedc d2 z d |"A" eA A2"G" gfed |"A" eA A2"G" gfed | 
"D" ABAG FAde | fedc d2 fg |"G" (3(aba) (3(gag)"A" (3(fgf) (3(efe) |1"D" df"A"ec"D" d2 z2 :|2 
"D" (3(ded) (3(cdc)"A" (3(BcB) (3(ABA) |]  