Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/16
M:2/4
K:G
['G2 z2', 'g2fe d2c2 B2c2'  
X:1
L:1/16
M:2/4
K:G
 (3(DEF) |"^^" G2B2"^^"G2B2 |"^^" G2B2"^^" cBAG |"^^" F2"^^"A2"^^"F2"^^"A2 | F2A2 (cBAF) | 
 G2B2G2B2 | GABc d4 | cBAG FGAB | G2 z2 G2 :: z2 | g2fe d2c2 | B2c2 d4 | g2fe d2c2 | B2c2 A4 | 
 g2fe d2c2 | B2c2 d4 | cBAG FGAB | G4 G2 :|  