Optimistic locking example