Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:Bb
['B3 B3', 'def fgf fgf'  
X:1
L:1/8
M:6/8
K:Bb
|: B3 B3 | BAB def | B3 B3 | GcB AGF | B3 B3 | BAB def | gab fed | cdB AGF :: def fgf | fgf fed | 
 efg gag | gag gfe | def fgf | fgf fga | bag fed | cdB AGF :|  