Special-case handling for classes