changed example02 to use ProfileHist, moved match() to end of file