update class.