homework for simulation