Basic example of Replace conditional with Polymorphism