Lessons from the credit crunch