Construct a melody utilizing the given chord arrangement.
'D', 'D#dim', 'Em', 'A7', 'D', 'Em7', 'Ddim', 'D', 'Em', 'A7', 'D', 'D', 'G', 'Em', 'A', 'A7', 'D', 'Ddim', 'D', 'G', 'Em', 'A', 'A7', 'D', 'A', 'D'  
X:1
L:1/8
M:2/2
K:D
 f |"D" a2 fd A2 df | aba^g"D#dim" a3 f |"Em" (3gag ec Acef | g2 f2"A7" g3 f | 
"D" a2 fd"Em7" A2 df |"Ddim" aba^g"D" a3 f |"Em" (3gag ec Acef |"A7" gf{g}fe"D" d3 |]: B | 
"D" A2 f2{g} fedc |"G" Bg (3ggg"Em" gfed |"A" ca (3aaa"A7" gece |"D" dcde"Ddim" fafd | 
"D" A2 fg fedc |"G" Bg (3ggg"Em" gfed |"A" ca (3aaa"A7" gece |"D" df"A"ec"D" d3 :|  