Writing a Moral Code: Algorithms for Ethical Reasoning by Humans and Machines · Study