Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:Emin
['EFGF EFGF EFGA', 'gfef gf e2 e2 dc BABc BcBA'  
X:1
L:1/8
M:2/2
K:Emin
"Em" EFGF EFGF | EFGA G2 E2 |"A" EFGF EFGF | EFGA G2 E2 |"C" EFGF EFGF | EFGA B2 e2 | 
"B7" B2 Bc BAGF |"Em" G2 E2 E4 ::"Em" e2 ef gfef | gf e2 e4 |"A" e2 ef gfef | gf e2 e4 | 
"C" e2 ef gfef | gf e2 e2 dc |"B7" BABc BcBA |"Em" GF E2 E4 :|  