notes & code: working through the book