5 results pagination implemented for class setup