Working on page generation through classes