Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/4
K:C
['c3/2 A/ G2']  
X:1
L:1/8
M:2/4
K:C
 d d2 d | e e3 | A A2 d | c3/2 A/ G2 | d d2 e | c3/2 A/ G2 | c A G G/ E/ | D4 |]  