Add function to create page objects.

 * Fix page numbers iteration.