Develop a melody using the given chord pattern.
'G', 'C', 'G', 'Am', 'G', 'D', 'G', 'C', 'G', 'Am', 'G', 'D', 'G', 'Em', 'D', 'Em', 'D', 'A', 'D', 'G', 'D', 'A', 'D'  
X:1
L:1/8
M:4/4
K:G
 Bc |"G" defg dB B2 |"C" cdec"G" B2 dB |"Am" ABcA"G" GFGB |"D" AGFE D2 Bc |"G" defg dB B2 | 
"C" cdec"G" BcdB |"Am" ABcA"G" GFGB |"D" defd"G" g2 :|[K:Emin] gf |"Em" eB B/B/B eBef | 
 gabg"D" afdf |"Em" eB B/B/B eBef | gabg efge |[K:D]"D" dA A/A/A dAde |"A" fdec"D" dA A/A/A | 
"G" Bcde"D" fgag |"A" fdec"D" d2 :|  