encode_decode_on_the_fly example begon