a simple case-when example
classes and inheritance .. also a recursive function that displays object hierarchy using the superclass function