An application of rule-based and case-based reasoning within a single legal knowledge-based system