Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:D
['fg gfec dcde fdAF G2'  
X:1
L:1/8
M:4/4
K:D
 FG |"D" ABAG FAde | fgfe dcdA |"G" B2 dB"D" A2 DE |"A" F2 ED E2 FG |"D" ABAG FAde | f3 e dcdA | 
"G" BcdB"A" ABAG |"D" F2 D2 D2 :: fg |"D" agfd"G" gfec |"D" dcde fdAF |"G" G2 BG"D" F2 AF | 
"A" EDEF E2 fg |"D" agfd"G" gfec |"D" dcde fdAF |"G" G2 BG"A" FA (3(EFG) |"D" F2 D2 D2 :|  