Trying to use polymorphism