Week 1 lecture 2 notes plus some improvements