added polymorphism in class section