Measuring the quality of life