Generalize classes