fixed Dog class example, added Books example. object creation of the books type needed to be added for the example in the book to work