Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/4=210
M:4/4
K:D
['E2 BE dEBE'  
X:1
L:1/8
Q:1/4=210
M:4/4
K:D
|:"Em" E2 BE dEBE | (3EFE BE"D" AFDF |"Em" E2 BE dEBE |"G" BABc"D" dAFD |"Em" E2 BE dEBE | 
 (3EFE BE"D" AFDF |"Em" E2 BE dEBE |"G" BABc"D" dAFD ::"D" d2 fd"A" cdec |"D" (3ded fd faaf | 
"D" d2 fd"A" cdec |"G" BABc"D" dAFA |"D" d2 fd"A" cdec |"D" (3ded fd fa a2 |"G" bggf"A" gfed | 
"G" BABc"D" dAFD :|  