Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/8
M:6/8
K:D
['d d2 A A2 d'  
X:1
L:1/8
M:6/8
K:D
 d |"D" d2 A A2 d | d2 A A2 d |"D" fgf efd |"A" (e2 A) A3 |"G" B3 BAG |"D" A3 AGF |"G" GAG"D" FED | 
"A" E3 E2 :: A |"A" (A2 E) EFG |"D" F2 E D2 d |"D7" (d2 A) AB=c |"G" B3 B2 f |"Em" g2 f e2 d | 
"A" (cd)e A2 A |"G" Bcd"A" ecA |"D" d3 d2 :|  