haskell problem 9
haskell problem 10