Structure of Thinking: A Process-oriented Account of Mind