created Simulator class