Lesson 9: Haskell: functionally solving problems