+ getIndex function
Merge pull request #1 from alexey-grom/master

+ getIndex function