Week 4 lecture Notes