added a member function to get the product id