refactoring - TrafficLights record