built util class and modified previous driver to work with current patternset implementation