Using AI for Code Generation