testing sub class - added polymorphism