How Rome became a Republic