Lec notes and some code to look at.