Integrating AI in the Classroom With Critical Thinking