Craft a musical work utilizing the specified alphabetical formation and given motif.
X:1
L:1/4
Q:1/4=120
M:4/4
K:G
['A A']  
X:1
L:1/4
Q:1/4=120
M:4/4
K:G
 G A B c | d e d z | d e d z | G A B c | d e d z | d e d z | A A A A | A2 A B | c d B z | A A A A | 
 A2 A B | c A G2 |]  