private ArrayList<Bar> createBars(){
		//arrange data lowest to highest
		Arrays.sort(data);
		int intervalSize = 0;
		if(numOfBars > 0) {
			intervalSize = (getMaxNumber(data) / numOfBars);
		}
		int lowerLimit = 0;
		int upperLimit = lowerLimit + intervalSize;
		int count;
		
		ArrayList<Bar> bars = new ArrayList<Bar>(numOfBars);
		for(int i = 0; i < numOfBars; i++) {
			count = 0;
			upperLimit = lowerLimit + intervalSize;
			for(int num : data){
				if (num >= lowerLimit && num <= upperLimit){
					count++;
				}
			}
			bars.add(new Bar(lowerLimit, upperLimit, count));
			lowerLimit += intervalSize + 1; //add 1 so no overlap between intervals
		}
		return bars;
		
	}