Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:D
['cAA A2 G FAA A2', 'd2 g fgf efe ded cde'  
X:1
L:1/8
M:6/8
K:D
 d | cAA A2 G | FAA A2 d | cAB cAG | ABc dfd | cAA A2 G | FAA A2 g | fed cAG | ABc d2 :: g | 
 fgf efe | ded cde | fag edc | edd d2 g | fgf efe | ded cde | fed cAG | ABc d2 :|  