store keys and values using haskell