Changing speed of moving object