A behavioral analysis of altruism