id <-> class