In Italy in the '70 public housing worked on some cases worked like this: A new building was made and people got in and started to pay a rent. After 15 years of rent, if no problems arose, the people renting got an interesting offer to buy the flat at a given price, that was less than the market value because some of the rent was preaccounted for this.
It worked very well, so it was scrapped, and after the money got selling there houses finishes the public housing building stopped due to lack of funds.