This is the book exert writeup.