AI version 1 working