Making a full HMM object and example.