Thinking as a Science