Ethical and legal responsibility for Artificial Intelligence