COMPUTING THE CLASSES AN OBJECT BELONGS TO