The development of thinking