An (Almost-Correct) Implementation of an Auto-Regressive HMM