Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/16
M:2/4
K:G
['G2GA G2D2 GABA G4 d2ef g2e2', 'B4 dcdB e2e2 cBcA d4 GABc dgfg'  
X:1
L:1/16
M:2/4
K:G
 G2GA G2D2 | GABA G4 | d2ef g2e2 | dedc B4 :: dcdB e2e2 | cBcA d4 | GABc dgfg | BGAF G4 :|  