update class barang