Problem 1 solved (Haskell)