Updated the tutorials to work with newest ai API.