Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:2/2
K:D
['afdB AdFA DFAd f2 ef (3(gfe) ce'  
X:1
L:1/8
M:2/2
K:D
 fg |"D" afdB AdFA | DFAd f2 ef |"A" (3(gfe) ce Aece |"A" a^gab"^(G)" a=gfg |"D" afdB AdFA | 
 DFAd f2 ef |"A" (3(gfe) ce Aece |"G" d2 dc"D" d2 :: z2 |"D" DF"D"Ad"G" (3(BdB)"D" AF | 
"D" DF"D"Ad"G" (3(BdB)"D" AF |"A" A,CEA ceaf |"^(G)" gfed"A" cBAF |"D" DF"D"Ad"G" (3(BdB)"D" AF | 
"D" DF"D"Ad"G" (3(BdB)"D" AF |"A" A,CEA ceaf |"^(G)" (3(gfe) cA"D" d2 :|  