Now using a mock of Ai instead of a real instance