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
['D2 D', 'B2 G A2']  
X:1
L:1/8
M:6/8
K:G
 A | BAB D2 D | E2 E D2 D | BAB D2 D | E2 F G2 :| A | B2 G A2 F | G2 G FED | B2 G A2 A | B2 c d3 | 
 e2 c d2 B | c2 A B3 | BAB D2 D | E2 F G2 |]  