Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:2/2
K:Emin
['g2 (fg) edBd', 'gfed egfa'  
X:1
L:1/8
M:2/2
K:Emin
|: G3 A (BE) TE2 | BdcA (BE) TE2 | G2 (GA) BABd |1 egfa gedB :|2 egfd e2 (df) |]: g2 (fg) edBd | 
 d2 (ed) Bdef |1 g2 (fg) edBd | egfd e2 (ef) :|2 gaba gfed | egfa gedB |]  