Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Bb
['B2 gd e2 ge fbab', 'B2 F2 f2 fd e2 ec dfdB'  
X:1
L:1/8
M:4/4
K:Bb
 F2 | B2 gd e2 ge | fbab afdB | c2 ec dfdB | edec BAGF | B2 gd e2 ge | fbab afdf | g/a/b ge dfdB | 
 c/d/e cA B2 :: F2 | f2 fd e2 ec | dfdB cAGF | fbfd egec | BfdB cAGF | B2 gd e2 ge | fbab afdf | 
 g/a/b ge dfdB | c/d/e cA B2 :|  