Creating a code of ethics for artificial intelligence