week 4 notes and code
more edits to p2