implemented DCMotor class for individual motor control