week 2 lecture 4 example