class define max value