code and lecture slides