Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Edor
['BE (3EEE', 'd4 f3 e f^gaf ecAc e2'  
X:1
L:1/8
M:4/4
K:Edor
|: BE (3EEE BEdE | BE (3EEE BcdB | cA (3AAA cdec |1 (3Bcd AGFD FA :|2 (3Bcd ef e2 de |: f3 e dcec | 
 f3 e d4 | f3 e f^gaf | ecAc e2 de :|  