Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:G
['BA G2'  
X:1
L:1/8
M:2/2
K:G
|: BA |"G" G2 g2"^(C)" edeg |"G" B2 BA"^(D7)" B2 BA |"G" G2 g2"Em" edeg |"Am" A2 AG"D7" A2 BA | 
"G" G2 g2"^(C)" edeg |"G" B2 BA B2 d2 |"C" e2 ef edef |"G" gedB"D7" A2 :: BA |"G" G2 BG dGBG | 
 B2 BA"^(D7)" B2 BA |"G" G2 BG"Em" dGBG |"Am" A2 AG"D7" A2 BA |"G" G2 BG dGBe | dBAG B3 d | 
"C" e2 ef edef |"G" gedB"D7" A2 :|  