generate page from class