Added a constructor to TrafficLight