add classes example to chapter 3 and update index to be correct