added Simulator.java