writing-code-for-an-ai-to-run