static void Main(string[] args) { LidarSensorInput sensor = new LidarSensorInput(); Agent agent = new SelfDrivingCar(); sensor.DistanceTo = 10; Actuator action = agent.process(sensor); Console.WriteLine(action.ToString()); sensor.DistanceTo = 15; action = agent.process(sensor); Console.WriteLine(action.ToString()); sensor.DistanceTo = 13; action = agent.process(sensor); Console.WriteLine(action.ToString()); sensor.DistanceTo = 10; action = agent.process(sensor); Console.WriteLine(action.ToString()); }