Added a locking example