class and index page