Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/16
Q:1/4=120
M:2/4
K:G
['c2 B2g2 fedc B4 TA4 G2b2a2g2 fedc']  
X:1
L:1/16
Q:1/4=120
M:2/4
K:G
 c2 | B2g2 fedc | B4 TA4 | G2b2a2g2 | fedc BAGF | G2e2 dcBc | defg a2g2 | f4 Te4 | d6 |:  