Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/8=120
M:6/8
K:G
['ABA c2 d edc', '(c>de/f/) g2 a gec'  
X:1
L:1/8
Q:1/8=120
M:6/8
K:G
 E | ABA c2 d | edc B2 A | GAG B2 c | dge dBG | ABA c2 d | edc Bcd | e2 A AB^G | A3- A2 :: B | 
 (c>de/f/) g2 a | gec gec | (G>AB/c/) d2 e | dge dBG | (c>de/f/) g2 a | gec de^g | a2 A AB^G | 
 A3- A2 :|  