working on pagination, Chapter 9
finishing pagination