Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:9/8
K:Emin
['E3 G2 A', 'fgf e3'  
X:1
L:1/8
M:9/8
K:Emin
|: E3 G2 A B3 | E3 G2 A BGD | E3 G2 A B3 | D3 dcB AFD :: gag fgf e3 | E3 G2 A BGE | g3 fgf e3 | 
 D3 dcB AFD :|  