created Simulator with main