Origins of Democracy and Republic