Code for basic predator prey models