create example of demux encode/decode.