Notes and Codes for Week 3