Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:D
['A2 FA', 'B>c dB'  
X:1
L:1/8
M:4/4
K:D
|: DE | F2 DF A2 FA | Bc dB A2 FA | B>c dB AF DF | EF/E/ ED E2 DE | F2 DF A2 FA | Bc dB A2 FA | 
 B>c dB Ad fd |1 ef/e/ dc d2 :|2 ef/e/ dc d>A de || fA df eA ce | d>e fd A2 dc | B>c dB AF DF | 
 E>F ED E2 de | fA d>f eA c2 | dd/e/ fd A2 dc | B>c dB Ad fd | ea c/d/e/c/ d2 a>g | 
 fa d/e/f/d/ ea c/d/e | dd/e/ f/e/d/B/ A2- A2 | B>c dB AF D2 | E>F ED EF/E/ DE | 
 F2 D/E/F/G/ A2 FA | Bc d/c/B A3 F | B>c dB Ad fd | e>b ac d2 ||  