this is the motor class