Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:G
['DEGB A2', 'g3 e dged B2 Ac BE E2']  
X:1
L:1/8
M:4/4
K:G
|: E | DEGB A2 GA | B2 BA BE E2 | DEGB A2 GB | dBAB G3 :| z | g3 e dged | B2 Ac BE E2 | 
 g2 ge d2 Bd | eaab agef | g3 e dged | B2 Ac BE E2 | DEGB A2 GB | dBAB G3 ||  