Reading up on paging; working on my own implementation