add and finished chapter five for haskell