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:G
['AG (3GGG', 'G2 gf'  
X:1
L:1/8
M:4/4
K:G
 AG (3GGG G2 GF | DFCF (3DEF CF | AG (3GGG GABc | d2 ge fdcA :| G2 gf gagf | dBcB AGFD | 
 G2 gf g2 fg | agfg (3agf g2 | dgga g2 ag | f2 af defg | (3agf ge fdcB | A2 ag fdcA ||  