How to Build Ethical Artificial Intelligence