Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['(3def gfgd BcBA GFGe dgdB', 'G2 FG AGAB cAec Bdgd BgdB ecdB'  
X:1
L:1/8
M:4/4
K:G
 (3def | gfgd BcBA | GFGe dgdB | cBcd edcB | A2 d2 d2 (3def | gfgd BcBA | GFGe dgdB | cAec BAGF | 
 A2 G2 G2 :: FG | AGAB cAec | Bdgd BgdB | ecdB cABG | (3FAd (3gfe (3ded (3cBA | GBdB gdBG | 
 cAae cafd | ecdB cAGF | A2 G2 G2 :|  