Included the codes into the library file, easy to config and create the pagination.