class_definition, simple checks