made Print a virtual base class