Breeding for resistance to diseases and pests