calculate class name