Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/4
M:3/4
K:G
['e d B/d/', 'B/d/ c B', '(3d/d/d/ d b a g B d']  
X:1
L:1/4
M:3/4
K:G
 B/d/ | g f G/B/ | e d B/d/ | c B (3A/B/d/ | e d B/d/ | g f G/B/ | e d B/d/ | c B A | G2 || B/d/ | 
 c B (3A/B/c/ | e d B/d/ | c B (3A/b/d/ | e d B/d/ | g f G/B/ | e d B/d/ | c B A | G2 || (3d/d/d/ | 
 d b a | g B d | c A f | g b (3d/d/d/ | d b a | g B d | c A f | g2 ||  