Compose a melody based on the given chord progression.
'D', 'G', 'A7', 'D', 'Em', 'A7', 'D', 'G', 'A7', 'D', 'C', 'D', 'D', 'D', 'Em', 'A7', 'D', 'G', 'A7', 'D', 'D', 'C', 'D'  
X:1
L:1/8
M:6/8
K:D
|: A |"D" F2 D DED |"G" dcB"A7" A2 G |"D" F2 D"^(Bm)" DEF |"Em" G2 F"A7" EAG |"D" F2 D DED | 
"G" dcB"A7" A2 G |"D" FDF"C" E=CE |"D" D3 D2 :: A |"D" D2 E F2 G |"D" A2 F FEF |"Em" G2 E"A7" EFG | 
"D" AFD DFA |"G" B2 c dcB |"A7" A2 G"D" FdA |"D" FDF"C" E=CE |"D" D3 D2 :|  