Update polymorphism sample.