What did the beginnings of class differentiation end?