Began implementing HMM