What is AI and how does it work?