added motor class