How facing challenging situations can prepare children for school