John Dewey's logical theory