create and implement code for DriveForTime command