Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Edor
['B3 A', 'Bded BEFE BEFE D2 FD ADFA BEFE'  
X:1
L:1/8
M:4/4
K:Edor
|: B3 A Bded | B3 A BEFE | B3 A Bdef | gfed Bded :: BEFE BEFE | D2 FD ADFA | BEFE BEFA | 
 BdcA B3 A :|  