How to implement Optimistic Locking

This edition implements Optimistic Locking via some live code