The Roman Republic was formed in 509 BCE after which of the following occurrences?
1.The people took control of the military and invaded Greece.
2. A dictator decided to overthrow the elected government.
3. The people of Rome elected officials after forming a council.
4. A group of nobles led a revolt to overthrow the king.