Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/16
M:2/4
K:D
['f2f2 f2ed', 'A2F2 F2AA G2E2'  
X:1
L:1/16
M:2/4
K:D
 A2AB d2de | f2f2 f2ed | f2f2 f2ed | e2e2 fedB | AdAB dAde | f2f2 f2ef | a2A2 A2Bc | d2f2 d2B2 :: 
 A2F2 F2AA | G2E2 E2A^G | A2D2 F2A2 | dcde fed B | A2F2 F2AA | G2E2 E2AA | F2D2 F2A2 | d4 dedB :|  