def productDict(pairsData):
    """
    transform the data into Dict with product info
    :param pairsData: (companyName,product)
    :return: dict={companyName:[product1,...]...}
    """
    product_dict = {}
    for company_name,product in pairsData:
        if company_name not in product_dict:
            product_dict[company_name] = []
        product_dict[company_name].append(product)
    return product_dict