Created code structure for index.