Clean-up the objects and classes examples

Apply "house style" to all the examples for objects and classes
Merge pull request #8 from lpw25/clean-examples

Clean-up the objects and classes examples