Support for class generalization (try 2)