founding of republic