Assignment 4 for CSC202 class to simulate the traffic