hs: more notes and code.