@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Statistic statistic = (Statistic) o;

        if (average != statistic.average) return false;
        if (max != statistic.max) return false;
        if (min != statistic.min) return false;

        return true;
    }