Made paginate method static.