encoder_wrapper.hpp implemted functions and encoder creater