Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:C
['GFG dBG', 'gfg aga bge'  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:6/8][K:G]SOSOO .!fermata!PMTuCOMD | GFG dBG | BAB dBG | GFG dBG | GAG GED | GFG dBG | 
 BAB dBG | GBG B2 A | GED D2 :: d | gfg aga | bge edB | gfg aga | bge e2 (g/a/) | bgg agg | 
 ege dBG | BAB GBA | GEE E2 :|  