Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:Emin
['B2 E>F', 'f/e/d/^c/ dA'  
X:1
L:1/8
M:2/2
K:Emin
 z/ | B2 E>F ADF<A | B>AFd B/A/G/F/ E2 | B2 E>F AD G/F/E/D/ | E>F d>c B/A/G/F/ E3/2 :: F/ | 
 Ddd>e f/e/d/^c/ dA | Be e>f g/f/e/d/ B>d | A>B d>e f/e/d/^c/ dA | B>A Fd/c/ B/A/G/F/ E3/2 :|  