Add a new class ProductUtil to hold some generic functions