Understanding the roots of morality