Application of Expert Systems - Theoretical and Practical Aspects