public DriveForwardForTime(double numberOfSeconds, double speed) {

    requires(Chassis.getInstance());
    this.numberOfSeconds = numberOfSeconds;
    timer = new Timer();
    timer.stop();
    this.speed = speed;
  }
 protected void end() {
   Chassis.getInstance().driveStraightAtSpeed(0);
 }
 protected void execute() {
   Chassis.getInstance().driveStraightAtSpeed(speed);
 }