Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/4=112
M:4/4
K:Dmix
['(B A>D)F>D FA/B/ c2 CA/B/ (c>G) ECC(B', 'f>d)a>d b>da>d'  
X:1
L:1/8
Q:1/4=112
M:4/4
K:Dmix
 (B | A>D)F>D FA/B/ c2 | CA/B/ (c>G) ECC(B | A>D)F>D (F/A/)B/^c/ d2 | AB/^c/ (dA) F>DD :| (g | 
 f>d)a>d b>da>d | fd e/f/g/f/ ecce | f>da>d b>da>d | g>e f/g/a/g/ f>dd(g | f>d)a>d b>da>d | 
 f>d e/f/g/f/ e(cc)f/g/ | (3afa (3geg (3fdf (3ed^c | (3B^cd (3ABG F>DD |]  