Multipart pricing of public goods