added data defs and function template to traffic light