The development of thinking in children