Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:G
['DG G2 BddB dedB', 'AGEG d g3 bgge dBBA']  
X:1
L:1/8
M:4/4
K:G
 DG G2 BddB | dedB gedB | G2 BG dGBG | c2 Bc AGEG | DG G2 BddB | dedB dgfg | e3 d (3Bcd ef | 
 gedB AGEG :| d g3 bgge | dBBA Bdef | g2 bg abge | d2 BG AGEG | d g3 bgge | dBBA Bdgf | 
 e3 d (3Bcd ef | gedB AGEG :|  