renamed AI demo function to avoid confusing it for a test