A simple class that accepts a collection of items and paginates the results.