The idea of democracy as a system of government was inherited from