Is a treaty an official agreement between two countries?