finished first version of pagination
finihed the pagination