A new approach to the demand for public goods