Wrapped mainpage in class