Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/4
K:D
['A>B AF', 'cB Ad cd fe e>g fd g>e'  
X:1
L:1/8
M:2/4
K:D
 A>B AF | DF Ad | A>B AF | GF EF/E/ | DEFG | ABcd | e>d ce |1 dA GE :|2 d2 de || fd g>e | fd cB | 
 Ad cd | fe e>g | fd g>e | fe cB | Ag ec |1 d2 de :|2 dA GE |]  