new class DCmotor.java to control this component