Fix indexing example to be zero-based