The methodology of thinking