AI in the Classroom: Foundations and First Steps