Added goToLastPage method to pagination class