Skeleton for the update operation