Assignment 4 and Lecture Notes 5