started hamming encoder class