結果 : explain the function of encoder and decoder