Added implementations for polymorphism exercise