Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Edor
['BAGF EDEF GE E2 BdAA BAGF']  
X:1
L:1/8
M:4/4
K:Edor
 BAGF EDEF | GE E2 BdAA | BAGF EDEG | (3FFF AF BFAA | BAGF EDEF | GE E2 BdAA | BAGF EDFA | 
 d2 AG FDDA | d2 (3efg fdec | dAFA BAFA | (3ddd eg fbec | dBAG FDDA | d2 (3efg fded | 
 (3Bcd ef g2 fg | afge fdec | dBAG FDDD | FABA FAdD | Ddcd BAFA | FABA FABc | d2 AG FDDD | 
 FABA FAdD | Ddcd BAFA | dfaf gfec | dBAG FDDA |]  