add rotary encoder ruby example