How did farming change the kinds of communities early people lived in?