How did people in China adapt to their environment?