Three ways of thought in ancient China