The relationship between dispositional optimism and cognitive functions in the middle-aged and elderly people · Study