Building a traffic light controller