finally they worked out a compromise between all three plans. the new government would have an upper house, having an equal number of delegates from each state, and a lower house with representation based on population. the executive branch would have most of the responsibilities of foreign affairs while other important powers, like ratifying treaties, would be the responsibility of the legislative branch. after the new constitution was ratified by the states, it went into effect in 1789.