Use proper indexing
Merge pull request #1 from Abhinav1997/patch-1

Use proper indexing