Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Edor
['BEEE EDB,E D2 FE DA,A,A, B,EED DFGA', 'g2 eg bgeg'  
X:1
L:1/8
M:4/4
K:Edor
 BEEE EDB,E | D2 FE DA,A,A, | B,EED DFGA | B2 eB dBAd | BEEE EDB,E | D2 FE DA,A,A, | B,EED DFGA | 
 (3(Bcd) AF GEEE :| g2 eg bgeg | f2 df afdf | g2 eg bgeg | fgaf geef | g2 eg bgeg | f2 df afdf | 
 g2 ga bgaf | gfed (3(Bcd) e3 :|  