#182 first implementation of pagination