Generative AI for Effective Teaching and Learning