Effect of aging and dementia on memory.