How to build resilient children