Sample programm to simmulate a simple traffic controll