Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Bdor
['dB (3BBB', 'fd (3ddd'  
X:1
L:1/8
M:4/4
K:Bdor
|: dB (3BBB =GB (3BBB | dB (3BBB f2 fe | dB (3BBB =GBBd | cAAc e2 fe | dB (3BBB Bd (3ddd | 
 ce (3eee e2 fe | dB (3BBB BcdB | cAAc e2 fe :: def=g ad (3ddd | fd (3ddd f2 fe | def=g ad (3ddd | 
 eA (3AAA e2 fe | fd (3ddd (3ddd ae | fd (3ddd f2 fe | fd (3ddd (3ddd ae | cAAc e2 fe :|  