Add a class which generates index pages automatically
Add a setter and a function for index page generations