First commit for HMM