Continuous-Observation HMM in Code (part 1)