def avg(new, avg, times):
    """
    :param new: int, the new score
    :param avg: float, the average of score of the class
    :param times: int, numbers of the scores of the class
    :return: float, the new average
    """
    new_avg = (avg * (times - 1) + new) / times
    return new_avg