hmm and pcfg examples