Added classes for the third chapter of the book