Updated the motor example program