Add code from Artificial Intelligence