Updated with the code for the first section of the homework. Traffic model not complete.