Notes and Codes for Week 2