Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:D
['F>G A>f e>d c>e (3dcB A2 F2', 'd2 e2 d2 c>=c ^c2'  
X:1
L:1/8
M:4/4
K:D
|: F>G | A>f e>d c>e (3dcB | A2 F2 F>E D>F | A2 G2 G>F E>G | B2 A2 A2 F>G | A>f e>d c>e (3dcB | 
 A2 F2 F>E D>F | A>d c>B A>G F>E | D2 (3DFA d2 :: A2 | F2 A2 d2 e2 | d2 c>=c ^c2 E>F | 
 G2 B2 B2 c2 | B2 A>^G A>=G F>G | A2 d2 d2 e2 | d2 c>=c ^c2 c2 | E2 c>B G2 c>B | (3AGF D2 D2 :|  