Coded all examples of chapter 5 of Progamming in Haskell.