Update Motor.cs

Update Motor.cs to use IMotor