first example
DC motor control