add method setSpeed