completed code for results from simulation

completed code to visualize the results from the simulation