A simple HMM model