Optimistic Locking with Version Number