Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:3/4
K:Bmin
['B2 d d2 d'  
X:1
L:1/8
M:3/4
K:Bmin
"Bm" B2 f2 f2 |"Bm" fe de fd |"G" B2 d d2 d |"^D/f#" AF EF A2 |"G" B2 d d2 d |"D/F#" ed ef ab | 
"Em" f3 g fe |"A" de fe dc |"Bm" B2 f2 f2 |"Bm" fe de fd |"G" B2 d d2 d |"^D/f#" AF EF A2 | 
"Em" B2 d d2 d |"D/F#" ed ef ab |"G" f3 g fe |"A" de fe dc ||"Em" B2 e2 e2 |"Em" e4 de | 
"D" f2 a a2 a |"D" a4 b2 |"F#m" af ef ab |"F#m" af ef ae |"Bm" f2 b b2 b |"G" b4 a2 |"D" f2 af ed | 
"A" e2 f2 a2 |"F#m" c3 d cA |"F#m" F2 A A2 A |"G" B2 d d2 d |"D/F#" ed ef ab |"Em" f3 g fe | 
"A" de fe dc ||  