Spending time with toddlers helps elderly fight dementia