Compose a melody based on the given chord progression.
'D', 'A', 'D', 'G', 'A', 'G', 'A', 'D', 'A', 'D', 'G', 'A', 'D', 'A', 'D', 'A', 'D', 'G', 'A', 'D', 'D', 'A', 'D', 'A', 'D', 'G', 'A', 'D'  
X:1
L:1/8
M:2/2
K:D
 A,2 |:"D" D2 D2 FE FA | DC DF"A" ED B,A, |"D" D2 D2 FE FA |1"G" Bd AF"A" ED CE :|2 
"G" Bd AF"A" E2 |: (3ABc |"D" dc ec dA FA | Ad cd"A" eg fe |"D" dc ec dA FA |"G" Bd AF"A" E2 :: 
 fg |"D" af af"A" gf ge |"D" fa fe"A" dc BA |"D" af af"G" gf ge |"A" fa ec"D" d2 :: (3ABc | 
"D" de fd"A" ef ge |"D" fa ec"A" dc BA |"D" de fd"G" ef ge |"A" fa ec"D" d2 :|  