Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:C
['', 'EF GE G2 cdcd edec- c2 (^c2'  
X:1
L:1/8
M:2/2
K:C
 EF |: GE G2 cdcd | edec- c2 (^c2 | d)=cdc AcAG | FEDD- DE D2 | G4 !slide!B3 A | GFGF GFED | 
 C4- CG EF :|  