t = TrafficLight(); b = Button(); b.onclick(t.next);