objects and classes by example