Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:G
['B2 ABGE DGGB eBdB cE', 'gB B/B/B gBaB bagf gedB'  
X:1
L:1/8
M:4/4
K:G
 gB B2 ABGE | DGGB eBdB | cE E/E/E Aceg | fgef dcBA | DB B2 ABGE | DGGB eBdB | cE E2 agfe | 
 dcEF G2 Bd :: gB B/B/B gBaB | bagf gedB | cE E/E/E Aceg | dgba gfef | gB B/B/B gBaB | bagf gedB |1 
 cE E2 agfe | dcEF G2 Bd :|2 ce e/e/e ceag | fdcA G4 ||  