@Override
 public void turnOn(MotionSensor motionSensor) {
   motionSensor.setRunnable(true);
   System.out.println("The motionSensor has turned on.");
 }
 @Override
 public void turnOff(MotionSensor motionSensor) {
   motionSensor.setRunnable(false);
   System.out.println("The motionSensor has turned off.");
 }