Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:G
['(GE) D2', 'G2 (Bc) d2 (eg) f2 (fg) (ag)'  
X:1
L:1/8
M:4/4
K:G
 (GE) | D2 (EG) B2 (gf) | (ef)(ed) B2 (AB) | d2 (ef) (ge)(dc) | B2 (G/B/A/G/) E2 (GE) | 
 D2 (GA) B2 (e>d) | (dB) (AG) g3 e | (dc) (BG) (AG) (ED) | (DE) (GA) G2 || (Bc) | d2 (eg) f2 (fg) | 
 (ag) (fe) d3 (e/f/) | g3 f (e2 d)c | (BG) (AG) E2 (GE) | D2 EG G2 (g>f) | (ef) (ed) B2 (ed) | 
 (cB){c} (AG) (AG) (ED) | (DE) (GA) G2 ||  