added lecture 4 pdf