Encoder implemented