Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/4
K:D
['f/g/ fddd', 'b>gf>a g>fe>d c2 BA f>gaa bg e(f/g/)'  
X:1
L:1/8
M:2/4
K:D
 f/g/ | fddd | g>fe>f | g>fe>d | B>d e f/g/ | fddd | g>ea>g | faAc |{c} d2 d :: b>gf>a | g>fe>d | 
{d} c2 BA | f>gaa | bg e(f/g/) | f>ae>f |{c} d2 d :|  