Lock example