Changed indices to type Int for examples.