Code examples used in a talk on polymorphism