Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/4
K:Edor
['E>F GA Be dB', 'E2 e>f ed Bc dB A>B AF'  
X:1
L:1/8
M:2/4
K:Edor
"Em" E>F GA | Be dB |"D" AB AF | EF D2 |"Em" E>F GA | Be dB |"D" AF dF |"Em" FE E2 :| e>f ed | 
 Bc dB |"D" A>B AF | EF D2 |"Em" e>f ed | Bc dB |"D" AF dF |"Em" FE E2 | e>f ed | Bc dB | 
"D" A>B AF | EF D2 |"Em" E>F GA | Be dB |"D" AF dF |"Em" FE E2 |]  