In September 1991, a Constituent Assembly was formed of equal numbers of members of the Supreme Soviet and the Congress of Estonia to work out a new Constitution for the Republic. The new constitution was approved by referendum in June 1992, using the constitution replacement process specified in the 1938 constitution as a matter of legal continuity of the Republic of Estonia. Both the Congress of Estonia and the Supreme Soviet dissolved themselves in October 1992, with the swearing-in of the first parliament "(Riigikogu)" elected under the new constitution in September 1992.