Implemented the PIMotorSpeed class