added haskell solution for problem 3