Look at this code carefully. How does it work? Could you use this technique to control levels in your program?