Simple example of classes and inheritance in Swift