Page factory 20

Use a factory to create pages.