Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:Emin
['E2 BE', 'efge fgaf gfed'  
X:1
L:1/8
M:2/2
K:Emin
 D | E2 BE GABG | E2 BE FDAD | E2 BE GABc | dBcA BEE :| e | efge fgaf | gfed edBd | efge fgaf | 
 gfed Beed | efge fgaf | gfed efga | bgaf gfed | eBBA GEE |]  