code for run time polymorphism