Generalized AI applications using the rule-based system