private boolean avgHigherThanThreshold(float thres, float[] values){
        float sum = 0;
        for (float count : values){
            sum+=count;
        }
        if (sum/values.length > thres)
            return true;
        return false;
    }