Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:Ddor
['DED DEG AGE C2 E GEE', 'dcA (3ABc A'  
X:1
L:1/8
M:6/8
K:Ddor
 DED DEG | AGE C2 E | GEE cEE | CEG ABc | DED DEG | AGE C2 E | GEE cGE |1 DED A,B,C :|2 DED D3 || 
 A2 d dcd | efe dcA | (3ABc A CEG | AGA cAG | A2 d dcd | efe dcA | (3ABc A GEC | EDC D3 :|  