Building Ethics into Artificial Intelligence