simple example of polymorphism through structs