Add main function to Index.hs