Design class for traffic light implementation.