update class model