def class