notes and code