Modified Page class. Add 2 functions that will be called later.