Produce melodies following the designated musical arrangement and the given motif.
X:1
L:1/8
M:4/4
K:G
['DGBG AGBG DGBG AGEG DGBG AGAB deed', 'G3 Bdd^c d2 ef g2 fg e'  
X:1
L:1/8
M:4/4
K:G
 DGBG AGBG | DGBG AGEG | DGBG AGAB | deed B G3 :: Bdd^c d2 ef | g2 fg e A3 | Bdef gfge | 
 dBAc B G3 :|  