Implemented DC Motor control