How did the problems in the 14th century bring about changes to European society?