adding motor driver code