The foundations of ethics