Ethics of AI: Benefits and risks of artificial intelligence