add Encoder classes