Lecture Code and Homework for Week 3