Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/4=200
M:2/2
K:D
['D2 DE FDFA dF F2', 'gf edef gfed cdef g2 fe defg'  
X:1
L:1/8
Q:1/4=200
M:2/2
K:D
|: D2 DE FDFA | dF F2 BFAF | E2 EF GFGA | (3Bcd AF EGFE | D2 DE FDFA | dF F2 ABde | 
 (3fgf ec dBAG |1 FGEF D2 FE :|2 FGEF D3 A |: defg afdf | afdf a2 gf | edef gfed | cdef g2 fe | 
 defg afdf | afdf abag | (3fgf ec dBAG |1 FGEF D3 A :|2 FGEF D2 FE |]  