update class code