Finished section on building HMMs