Helping emerging tech and the legal system to help each other: artificial intelligence, smart contracts and web3