The philosophy of thinking