Friendship, altruism, and morality