def _build_report_metrics(products):
    """Builds unique_names count, average_price, average_weight, average_flam to send to
    the inventory report function"""
    unique_names = len(set([i.name for i in products]))
    average_price = sum([i.price for i in products]) / len(products)
    average_weight = sum([i.weight for i in products]) / len(products)
    average_flam = sum([i.flammability for i in products]) / len(products)

    return unique_names, average_price, average_weight, average_flam