add encoding example (2/2)