Title: A theoretical analysis of the formation of foreign policy