Encoder And Decoder Definition