Adding notes and code for lecture 1