Moved rotary encoder to class2