Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Cmix
['G2 GA B2', '(3efg gc'  
X:1
L:1/8
M:4/4
K:Cmix
 G2 GA B2 Bf | ecgc acgc | G2 GA B2 Ba | gefd c2 Bc | G2 GA B2 Bf | ecgc acgc | G3 A B2 Ba | 
 gefd c4 || (3efg gc Bdfd | ecgc acgc | (3efg gc Bdfa | gefd c4 | (3efg gc Bdfd | ecgc acgc | 
 efga bagf | eBfd c4 |]  