added rotary encoder example