Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['e3 g edBA', 'dG G2 FDcA Bg g2 fgaf'  
X:1
L:1/8
M:4/4
K:G
 Bd | e3 g edBA | GDGA B3 d | ea a2 bagb | agea gedB | e3 g edBA | G3 A BABd | ea a2 gedg | 
 edBA G4 :: Bc | dG G2 FDcA | Bg g2 fgaf | dg g2 bg g2 | afge f2 ef | dG G2 FDcA | Bg g2 fgaf | 
 ea a2 gedg | edBA G4 :|  