Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:6/8
K:G
['gdB ecA', 'd2 d de=f eBc Aag fed c/d/ec'  
X:1
L:1/8
M:6/8
K:G
 f | gdB ecA | dBG AG/F/E/D/ | gdB ecA | BAG d2 :: d | de=f eBc | Aag fed | c/d/ec B/c/dB | 
 Agf g2 :|  