Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/16
M:2/4
K:D
['', 'F2A2 |1[M:1/4]'  
X:1
L:1/16
M:2/4
K:D
 (A2 |: d2)AG F2AF |[M:3/4] dAFA dFAF dFAF |[M:2/4] [A,E]2([A,E-]2 E2)BB | B2[A,E]2- [A,E]2BB | 
 (Bd)c(B AG)F(E |[M:3/4] DE)FG (AB)AG F2A2 |1[M:1/4] d2>d2 :|2 d2>e2 ||[M:2/4] f2f2 (af)d2 | 
 (fg)af def(d | [Ae]2)e(a f2)ed | B(dAG) F2A2 |1[M:1/4] d2>e2 :|2 d2>A2!D.C.! || d4 ||  