Moving the simulator into its own class.