Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:Dmix
['ADDE FEFG', 'Addc AGFG'  
X:1
L:1/8
M:4/4
K:Dmix
 ADDE FEFG | ADDB cABG | ADDE FEFG | ABcA AG G2 :| Addc AGFG | Adde fdec | Addc AGFG | ABcA AG G2 | 
 Addc AGFG | Adde fefg | afge fded | cBcA AG G2 ||  