Develop a melody based on the provided set of chords.
'Em', 'Am', 'D', 'D', 'Em', 'Bm', 'Em', 'Em', 'G', 'D', 'Em', 'Bm', 'Em', 'Am', 'D', 'D', 'Em', 'Bm', 'Em'  
X:1
L:1/8
M:4/4
K:Emin
 B2 |"Em" e2 dB e2"Am" dB | A2"D" B2 D2"D" EF |"Em" GBAG"Bm" E2 ED |1"Em" E6 B2 :|2"Em" E6 EF | 
"G" G2 GB d2 cB |"D" A2 A2 B2"Em" GA | B2 gf edBd |"Bm" e6 Bd |"Em" e2 dB e2"Am" dB | 
 A2"D" B2 D2"D" EF |"Em" GBAG"Bm" E2 ED |"Em" E6 ||  