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
['(GB)d gfg', 'G2 z BBB ccc gdG TA2 G'  
X:1
L:1/8
M:6/8
K:G
 D | (GB)d gfg | (ed)c BAG | (GB)d gfg | fdd def | geg fdB | cec dBG | GBd cAc | BGG G2 :: z | 
 BBB ccc | gdG TA2 G | Bcd efg | fdd d2 e/f/ | geg fdB | cec dBG | GBd cAc | BGG G2 :|  