Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/4
M:3/4
K:D
['A F', 'd A'  
X:1
L:1/4
M:3/4
K:D
|: F/G/ A F | D F A | c/d/ e c | d B G | F/G/ A F | D F A | E E/D/ E/F/ | G F E | F/G/ A F | 
 D F A | c/d/ e f | g f e | d A F | G/A/ B G | F/E/ D C | D3 :: f d A | e c A | B B/A/ B/c/ | 
 d A F | G/A/ B G | F/G/ A F | E E/D/ E/F/ | G F E | f d A | e c A | B B/A/ B/c/ | d A F | 
 G/A/ B G | F/E/ D C | D3- | D3 :|  