transformed paging3 to a much more complex example!