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
['g>ef>d (3(efe) (3(dcB) A2'  
X:1
L:1/8
M:4/4
K:D
 d>B |"D" A>FD>F A>Fd>B | (3(ABA) F>A f>ed>c |"G" B>dG>B"A7" g>ef>d | (3(efe) (3(dcB) A2 F>G | 
"D" A>FD>F A>Fd>B | A>dF>A f>ed>c |"G" B>AB>d"A7" g>ef>d |"D" e>c (3(ABc)"D" d2 :| d>e | 
"D" f>dc>d"G" B>dA>d |"D" F>Ad>e f>dc>d |"A7" e>A (3(AAA) g>ef>d | (3(efe) (3(dcB) A2 d>e | 
"D" f>dc>d"G" B>dA>d |"D" F>Ad>e f>dc>d |"A7" e>Af>A"G" g>ef>d |"A7" e>c (3(ABc)"D" d2 :|  