chapter two lecture notes for pr 2310 495714