Basic Pagination Final

Basic pagination code after review by @Rumyra