Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:2/2
K:G
['', 'd2 (BG)', 'd2 (BG) AGEF', '(ef) g2 (fg) Bgdg g2 (bg) agef', 'g2 (ga) b>g (3.g.g.g agef gage dega']  
X:1
L:1/8
M:2/2
K:G
 geS |: d2 (BG) AGEF | G2 (Bd) e(f{a}g)e | d2 (BG) AGEd | eaag (fd) || (e^c) | d2 (BG) AGEF | 
 G2 (Bd) e(f{a}g)e | d2 (BG) AGEF | GBAF !fermata!G2 |] | (ef) | g2 (fg) Bgdg | g2 (bg) agef | 
 g2 (dg) Bgdg | egfa g2 || (ga) | b>g (3.g.g.g agef | gage dega | bgaf gfed | edef gagSe |]  