DONE: get_equivalence_classes