def heat_capacity(mass_flow_rate, cp):
    """ Calculates the heat_capacity given a mass_flow_rate
        and a specif_heat of a material.

    Args:
        mass_flow_rate (float): the mass of a substance which
        passes per unit of time. Units: [kg/s]
        cp (float): Specif heat. The amount of energy that must be
        added, in the form of heat, to one unit of mass of the
        substance in order to cause an increase of one unit in
        temperature Units: [J/kg.K]

    Returns:
        [float]: The heat_capacity, which is the amount of
        heat to be supplied to a given mass of a material
        to produce a unit change in its temperature.
    """
    return mass_flow_rate * cp