Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:C
['D3 C DEFG A2 GE CDEG A3', 'EDDC Addc d2 Ad cAGE CDEG ceed'  
X:1
L:1/8
M:2/2
K:C
 D3 C DEFG | A2 GE CDEG | A3 c dced | cAGE EDDC :| Addc d2 Ad | cAGE CDEG | ceed e3 d | 
 cAGE EDDG :|  