Week 3 lecture notes