Lecture demo code