Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:6/8
K:G
['G3 ABd', 'gfe agf', 'e3 dBG']  
X:1
L:1/8
M:6/8
K:G
 D | G3 ABd | edB A2 B | G3 ABd | ede TE2 D | G3 ABd | edB A2 G | def gdB | AcB G2 :| f | gfe agf | 
 gfe def | gfe agf | gab e2 f | gfe agf | gfe def | gab dBG | AcB G2 :| d | e3 dBG | BAG ABd | 
 e3 dBG | A2 B E2 d | e3 dBG | BAG ABd | efg dBG | AcB G2 :|  