Created Interfaces and a simple RuleBase implementation.