Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:D
['FG ADFA GFEG', 'fg abag'  
X:1
L:1/8
M:4/4
K:D
|: FG | ADFA GFEG | FDFA d2 ef | gfge fAdf | e2 dB A2 FG | ADFA GFEG | FAdf a2 gf | gecA ^GABc | 
 d2 ec d2 :| fg | abag fdAG | gfge fAdf | gfge cdec | Acef g2 fg | abag fdAF | GFGB Adfd | 
 Bged cABc | d2 ce d2 fg | abag fdAG | gfge fAdf | gfge cdec | AGFG E2 FG | AFAd fedc | 
 BGBd g2 fg | afdc Bgec | d2 ec d4 ||  