Literacy in Croatia is 98.1 percent. The 2001 census reported that 15.7% of the population over the age of 14 has an incomplete elementary education, and 21.9% has only an elementary school education. 42.8% of the population over the age of 14 has a vocational education and 4.9% completed gymnasium. 4.2% of the same population received an undergraduate degree, while 7.5% received an academic degree, and 0.5% received a postgraduate or a doctoral degree. Croatia recorded a substantial growth of the population attaining academic degrees and by 2008, this population segment was estimated to encompass 16.7% of the total population of Croatians 15 and over. A worldwide study about the quality of living in different countries published by "Newsweek" in August 2010 ranked the Croatian education system at 22nd, a position shared with Austria. In 2004, it was estimated that 4.5% of the GDP is spent for education, while schooling expectancy was estimated to 14 years on average. Primary education in Croatia starts at the age of six or seven and consists of eight grades. In 2007 a law was passed to increase free, noncompulsory education until 18 years of age. Compulsory education consists of eight grades of elementary school. Secondary education is provided by gymnasiums and vocational schools. As of 2010, there are 2,131 elementary schools and 713 schools providing various forms of secondary education. Primary and secondary education are also available in languages of recognised minorities in Croatia, where classes are held in Czech, Hungarian, Italian, Serbian and German languages.