private Map<String, Double> getRatio(Map<String, Double> numberMap){
      double sum=0;
      Map<String, Double> ratioMap = new HashMap<String, Double>();
      NumberFormat doubleFormat = new DecimalFormat(".0000");
      
      for(String key:numberMap.keySet()){
          sum+=numberMap.get(key);       
      }
      for(String key:numberMap.keySet()){
          double numberOfEachMovie= numberMap.get(key);
          double ratio=numberOfEachMovie/sum;
          ratio = Double.parseDouble(doubleFormat.format(ratio));
          //numberMap.put(key,numberMap.ge);
          ratioMap.put(key, ratio);        
      }
      
      ratioMap = sortByComparator(ratioMap, DESC);
      
      return ratioMap;
      
  }