rewrite Model to implement Pager