Working on lab 2, simulation is throwing an error