Use of AI-driven code generation models in teaching and learning programming