Created a common base class for all classes in order to contain their identity.