Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/4
M:4/4
K:G
['d d'  
X:1
L:1/4
M:4/4
K:G
 B3/2 c/ |"G" d d d/e/d/c/ | B B B A | G2 D3/2 G/ |"D7" B A A A/B/ |"Am" c c c/d/c/B/ | 
"D7" A A A G | F A e d |"G" B2 B3/2 c/ | d d d/e/d/c/ | B B B A | G B d g |"C" f2 e f/e/ | 
"G" d3 e/f/ | g/f/g/f/"C" e f/g/ |"D7" a/g/f/e/ d d | e f"G" g2 |:"G" g f/e/ d e |"D" c d"G" B c | 
 d e/d/ c B |"D7" A4 |"G" g f/e/ d e |"D" c d"G" B c |"D7" d d e f |"G" g4 :|  