added simple motor code
added header to motor.h