Book notes and code