Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/4
K:G
['G BG BG [FA]3 A cA cA', 'z G G>A GF [CE]3 A A>B'  
X:1
L:1/8
M:2/4
K:G
 G | BG BG | [FA]3 A | cA cA | [GB]3 d | e>d ef | gf/e/ dc | B2 A2 | G2 z :| G | G>A GF | [CE]3 A | 
 A>B AG | F3 A | GFED | ^CA, DG | F2 E2 | D3 ||  