Law and Artificial Intelligence: Regulating AI and Applying AI in Legal Practice