add lib directory and Paging.php