Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
['GAB BAG']  
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
|: D | GAB BAG | FGA AFD | GAB BAG | Bdd d2 D | GAB BAG | FGA AFD | GAB BAG | Bdd d2 B | cde d2 c | 
 BAG d2 B | cBc Adc | BGG G2 B | cde d2 c | BAG d2 B | cBc Adc | BGG G2 :|  