Chapter 1 examples from machine learning with R book