lec6 demo