provide a locking example