Formulation and implementation of foreign policy