Added RuleEngine class.