Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:G
['G2 B>G Bd', 'ed ed ef']  
X:1
L:1/8
M:4/4
K:G
|: G2 B>G | Bd dB | c2 e>c | eg g2 | G2 B>G | Bd dg | ed cB | A2 G2 :| g2 b>g | af ed | ed ef | 
 gd Bd | g2 b>g | af ed | ed ef | g2 g>a | bg af | gf ed | ed ef | gd Bd | c2 e>c | Bd ge | dB GB | 
 A2 G2 ||  