Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:4/4
K:G
['D2 (3GGG BG d2 Bd efge edBc', 'bgdg edef']  
X:1
L:1/8
M:4/4
K:G
 D2 | (3GGG BG d2 Bd | efge edBc | ceAc BdGB |1,3 ABcA GFED :|2,4 AGFA G2 :: d2 | gfga bgdg | 
 edef gdBd | gfga bgdg | egfa g2 (gd) | gfga bgdg | edef gdBG | DGBd gdBd | egfa g2 :|  