Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:G
['Bd G2', 'gfga gdBG cABA GFED'  
X:1
L:1/8
M:4/4
K:G
 dc | Bd G2 G2 BG | FA D2 D2 dc | Bd G2 GABc | dgfg ecAF | Bd G2 G2 BG | FA D2 D2 dc | BdGB cAFA | 
 G2 G2 G2 :: d2 | gfga gdBG | cABA GFED | EGEG FAdc | B2 A2 A3 d | gfga gdBG | cABA GFED | 
 EGDG FG A/B/c | B2 G2 G2 :|  