The not-for-profit organization Social Progress Imperative ranked the countries by quality of life. They took into consideration the scores of three main indexes: 1. Basic Human Needs, which includes medical care, sanitation, and shelter. 2. Foundations of Wellbeing, which covers education, access to technology, and life expectancy. 3. Opportunity, which looks at personal rights, freedom of choice, and general tolerance. Then all the three factors were added together before giving each country a score out of 100.