結果 : implement encoder and decoder using multiplexer