Assignment 3 and Lecture Notes 4