Starter code for assignment 4: simulations