Problem 10 & some Haskell refactoring