update class