A Knowledge based System for Plant Diagnosis