added code for the currentSpeed methods