Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:D
['F3 DFA BAF', 'AFE B=cd', 'AFE DFA d3 edc'  
X:1
L:1/8
M:6/8
K:D
|: F3 DFA | BAF d2 A | F3 DFA | BAF AFE | F3 DFA | BAF d2 e | fed edB | BAF AFE :: B=cd eAA | 
 fed eAA | B=cd edB | BAF AFE | B=cd e3 | fed efg | age edB | BAF AFE :: DFA d3 | edc dAF | 
 DFA d2 A | BAF AFE | DFA d3 | edc d2 e | fed edB | BAF AFE :|  