update class cart