First two haskell 99 problems.