San Marino, with a population of only 30,000 and a per capita income of $46,900, providing a basic service like education for free to its citizens would be a natural precedent.
San Marino has the political framework of a parliamentary representative democratic republic: the Captains Regent are the heads of state, and there is a pluriform multi-party system. Executive power is exercised by the government. Legislative power is vested in both the government and the Grand and General Council. The judiciary is independent of the executive and the legislature.
Most visits to San Marino are trouble-free but you should be aware of the global risk of indiscriminate international terrorist attacks, which could be against civilian targets, including places frequented by foreigners.