Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:9/8
K:Amin
['c BAG AEE', 'A2 a'  
X:1
L:1/8
M:9/8
K:Amin
|: c | BAG AEE A2 c | B3 e3 dcB | A2 c BAG AEE | e3 dcB A2 :: a | ged cAG A2 a | age ged cAG | 
 A2 a ged cAG | e3 dcB A2 :|  