Add HMM class code.