Can a machine learn morality?