update lecture 13 code

update code snippets in lecture 13