An expert system for a legal office