Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:D
['A2 d ded B2 e ede fdB', 'a fdB Adf dfa b2 a geg'  
X:1
L:1/8
M:6/8
K:D
 B | A2 d ded | B2 e ede | fdB AFA | BAF DFG | A2 d ded | B2 e ede | fdB ABc | dfe d2 :: a | 
 fdB Adf | dfa b2 a | geg fdf | ecA A2 a | fdB Adf | dfa b2 a | geg fdf | ecA d2 :|  