A comparison of case-based and comprehension-based architectures