use class pagination