The use of a 'traffic light' in the lesson is a common way to teach students to focus while working independently in a class situation.
The format that is usually used is: red for working in total silence, no questions may be asked; orange if questions may be asked to the teacher or with each other; green is for normal discussion and collaboration.
Of course, this is can change on the basis of how you teach in your classroom.