Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Ador
['BAe z ABcd efdB', 'agef (3gfe dc BGBd gfga (3bag eg'  
X:1
L:1/8
M:4/4
K:Ador
 A2 eA BAe z | ABcd efdB | GzBG dGBA | GBBA GBdB | AzeA BAe z | ABcd efdB | GzBd egge |1 
 dBGA BAdB :|2 dBGA B a3 |: azeg ageg | azab agef | (3gfe dc BGBd | gfga (3bag eg |1 azeg ageg | 
 agbg ageg | dzde g3 e | dBGA B a3 :|2 ed (3efg a z ab | baag aged | Bdef gzge | dBGA BAdB ||  