Compose a harmonious melody following the provided chord sequence.
'D', 'G', 'D', 'Em', 'G', 'D', 'Em', 'G', 'D', 'Em', 'D', 'G', 'D', 'Em', 'D', 'G', 'Bm', 'Em', 'G'  
X:1
L:1/8
M:4/4
K:D
|:"D" A2 AB AFED |"G" B2 BA BcdB |1"D" A2 AB AFED |"Em" gfed"G" BcdB :|2"D" FAAB AFED | 
"Em" gfed"G" Bcde |]:"D" f2 fd"Em" g2 ge |"D" f2 fd"G" Bcde |1"D" f2 fd"Em" g2 fg | 
"D" afed"G" Bcde :|2"Bm" defg afbf |"Em" gfed"G" BcdB |]  