Trying to implement the pagination style