Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Edor
['EBBA B2', 'e2 Be egfe'  
X:1
L:1/8
M:4/4
K:Edor
 EBBA B2 AG | (3FED AD BDAF | EBBA B2 Bc | dBA=c BEED | EBBA B2 AG | (3FED AD BDAF | EBBA B2 Bc | 
 dBA=c BE E2 || e2 Be egfe | dBBc d2 Bd | e2 Be egfe | dBA=c BE E2 | e2 Be egfe | dBBc d2 de | 
 f3 e defe | dBA=c BE E2 |]  