Motor control example