changing grades to traffic light