Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:D
['def ddB AFA AFA', 'EFA BFF ADD FEF AFD'  
X:1
L:1/8
M:6/8
K:D
 def ddB | AFA AFA | def ddA | Bee edB | def ddB | AFA AFA | gfe fdB | AFE EFA :: BFF ADD | 
 FEF AFD | BFF ADA | AFD EFA | BFF ADD | FEF AFD | gfe fdB | AFE EFA :|  