motor class
filling out methods for motor control