Traffic lights don't go red, yellow, green, but I'll assume that the requirements are dictated by the assignment.

You have all of the necessary elements, some of them unused, others used...