Analysis of cooperation in the public goods setting