Encoding And Decoding Model