The Connecticut Compromise (also known as the Great Compromise of 1787 or Sherman Compromise) was an agreement reached during the Constitutional Convention of 1787 that in part defined the legislative structure and representation each state would have under the United States Constitution. The legislative branch would be bicameral, consisting of an upper house—the Senate—and a lower house—the House of Representatives. Representation in the House would be based on population, and each state was allotted two seats in the Senate. The office of the president would constitute the executive authority and was to be chosen by the electoral college.