CS199-6 Lecture Notes