Problems solved in Haskell