An example of inheritance in a Swift programming language