Generate a musical piece using the presented motif and follow the alphabetical structure provided.
X:1
L:1/8
M:4/4
K:G
['A2 AB', 'gdgd e2 d2']  
X:1
L:1/8
M:4/4
K:G
 BAGE D2 G2 | A2 AB AG E2 | BAGE D2 G2 | A2 AB A4 | BAGE D2 G2 | A2 AB AG E2 | A2 AB AG E2 | 
 AG A2 G4 :| gdgd e2 d2 | e2 ef ed B2 | gdgd e2 d2 | efed BGBd | gdgd e2 d2 | e2 ef ed B2 | 
 edef edBG | AF A2 G4 :|  