Seeking mental stimulation may have a beneficial effect on cognition in middle age