Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:G
['GBB Acc GBB c2 e GBB cAd', 'G3 GBd g2 a ecc c3 fga'  
X:1
L:1/8
M:6/8
K:G
 GBB Acc | GBB c2 e | GBB cAd | BGG G3 :: GBd g2 a | ecc c3 | fga aba | fdd d3 | GBd gag | 
 ece f2 e | BGG cAA | BGG G3 :|  