On the development of knowledge during problem solving