Code and Notes for the book