Implemented index3