. . . "Dementia can affect thinking functions such as memory, attention, language and problem solving." .