at first people lived as a community and were occupied by hunting and gathering , then there was a period when they had kings and noble people , then they did not like the kings any longer and established an elected government .