Voluntary purchase of public goods