add the lib and abstract the function of getting the discont number of product
abstract the print function