Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/8=333
M:9/8
K:Emin
['z E2 B BGE BGE FAD A', 'eBe geg bge'  
X:1
L:1/8
Q:1/8=333
M:9/8
K:Emin
 z | E2 B BGE BGE | FAD A Fd AFD | EFG ABc BAG | BeB AGF E2 :| | z eBe geg bge | dAd fdf afd | 
 eBe geg bge | (gfe) Be^d e3 | eBe geg bge | dAd fdf afd | (e/f/g)f edc BAG | BeB AGF E2 |]  