Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:G
['G2 g dBG', 'g/a/ bag'  
X:1
L:1/8
M:6/8
K:G
 D | G2 g dBG | (EA)A A2 B | G2 g dBG | Bde g2 a | bag ede | aAA A2 B | def gdc | BGG G2 :: g/a/ | 
 bag ede | aAA A2 g/a/ | bag ege | def gdB | c2 a B2 g | aAA A2 B | G2 g ded | BGG G2 :|  