Introduced polymorphism with Shape and its subclasses.