Cooperation among strangers with and without a monetary system