Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:G
['B<dd>B d2'  
X:1
L:1/8
M:4/4
K:G
 (3DEF |"G" G2 G>A G>FE<D |"G" B<dd>B d2 (3dBd |"C" e>c"G"d>B"Am" c>A"G"B<G |"C" E4"D" E2 (3DEF | 
"G" G2 G>A G>FE<D |"G" B<dd>B d2 g>e |"G" d>BG<B"D" A>GA<B |"G" G4 G2 :| B>d | 
"C" e2 e>f"G" g>fe<d |"G" B<dd>B d2 (3dBd |"C" e>c"G"d>B"Am" c>A"G"B<G |"C" E4"D" E2 (3DEF | 
"G" G2 G>A G>FE<D |"G" B<dd>B d2 g>e |"G" d>BG<B"D" A>GA<B |"C" G4"G" G2 :|  