Adding some more code for number_of_pages