Notes from the HMM model book