public Stats[] popNumbers(String targetNumber){
        try{
            Collection<Stats> popNubmersColl = targetDb.get(targetNumber).getCallStats().values();

        Stats[] out = new Stats[popNubmersColl.size()];
        int i = 0;
        for (Stats temp:popNubmersColl){
            out[i++] = temp;
        }
        sort(out);

        return out;
        }catch(NullPointerException e){
            System.err.print("There is no statistic for " + targetNumber);
        }
        return null;
    }