The book I am reading is Introduction to Statistical Learning by Witten. In chapter 8 where they are discussing Decision Tree, they have the following example: