How to build resilience in the face of adversity