Social and Legal Aspects of AI