結果 : how does encoder and decoder work