When did the Roman Republic end