How suffering leads to growth