Chapter Four and Five Scala for the Impatient