Teaching children to be resilient