getting indexes

Added function to get indexes list for the object.