How did the beginning of agriculture and the domestication of animals promote the rise of settled
communities?