Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:D
['dfa efg fed cBA BGB AFA GEG', 'D3 DFA DFA ABc BAG E^GB EGB'  
X:1
L:1/8
M:6/8
K:D
 dfa efg | fed cBA | BGB AFA | GEG FDA | dfa afd | Ace ecA | Bcd edc | d3 D3 :| DFA DFA | ABc BAG | 
 E^GB EGB | Bcd cBA | Ace Ace | efg fed | Bcd edc | d3 D3 :|  