Added batch encoding example.