Added encoding example