added partial support for class definition (right now, just objects)