Using re ection techniques for exible problem solving ( with examples from diagnosis )