Gender, education, class affect quality of life in old age