Moved stepper motor class to separate file