Completed all exercises in Chapter3 of Real World Haskell