add getPredators contributed function from #27