Working principle of DC motor