Clean-up the objects and classes examples

Apply "house style" to all the examples for objects and classes