Implemented index (fixed #28)