Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/2=90
M:4/4
K:C
['C ef g2 cd efed d2 G2', 'ef gagf efed cdcB dedc BcBA GAGF'  
X:1
L:1/8
Q:1/2=90
M:4/4
K:C
 C |[K:C]"^J.A." ef |"^v" g2"^u" e"^u"f"^v" g2 cd | efed c2"^u" e"^u"f |"^v" g2"^u" f"^u"e d2 G2 | 
"^v" c6 ::"^u" e"^u"f | gege g3 g | agag"^*" a3 a |"^v" b2"^u" a"^u"g"^ds" f2"^u" e"^u"d | 
"^v*" g6 ef | gagf efed | cdcB A2"^u" B"^u"c | dedc BcBA | GAGF E2 FG | ABAG FGFE | 
 DFED C2"^u" e"^u"f | g2"^u" f"^u"e d2 G2 |"^v" c6 :|  