hs: more code and notes.