Lecture notes and code snippets for 22.106