A two part of the LockDemo