Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
Q:1/8=350
M:4/4
K:Edor
['E2 Bc d2 Bc dBAF', 'Beef gfed B2']  
X:1
L:1/8
Q:1/8=350
M:4/4
K:Edor
 E2 Bc d2 Bc | dBAF DEFD | E2 Bc d2 Bc | dBAF GEED | E2 Bc d2 Bc | dBAF DEFD | afge fdec | 
 dBAF DEFD :| Beef gfed | B2 AF DEFD | Beef gfed | B2 Ac BE E2 | Beef gfed | B2 AF DEFD | 
 afge fdec | dBAF BE E2 :|  