Updating for class