Lesson 8: single variable lock