Codes for classes