Implementation of Case-Based Reasoning