A Knowledge-Based System for Integrated Pest Management