lec slide and code update