added polymorphism test