Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:G
['GdBG FcAF GABG D2 (GF)', 'G2 (AG) FAd^c dBAG FAd^c dfed ^cdef'  
X:1
L:1/8
M:2/2
K:G
 (3(DEF) | GdBG FcAF | GABG D2 (GF) | EGAB cBAG | FAd^c (3(fed) (3(ecA) | GdBG FcAF | 
 GABG D2 (GF) | E>edc BAGF | A2 G2 G2 :| | (AG) | FAd^c dBAG | FAd^c dfed | ^cdef gecg | 
 d^cde d2 d=c | BcBA GBec | ABAG FAdf | egfe dcBA | G2 B2 G2 :|  