Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Amin
['c2 BA', 'gede g2'  
X:1
L:1/8
M:4/4
K:Amin
 AB | c2 BA G2 AB | c2 BA G2 cd | e2 de c2 BA | A4 G2 de | f2 fg e2 ef | d^cde a3 ^g | 
 a=ged cAB^G | A4 A2 :| e | gede g2 ga | gede g2 e2 | a^gab a=geg | b4 abag | ^f2 fg e2 e=f | 
 d^cde a3 ^g | a=ged cAB^G | A4 A2 ||  