updated example

corrected the numerical index ‘a’ variable to the expected string
object.