added contructor to define class var 'params'