Added a file for the index function