touched up pagination and added to example