CSP book notes