public Book(String blob, String title, String author, int pubYear, double review, int numReviews){
		if(blob != null){
			StringTokenizer breakIndexToC = new StringTokenizer(blob, "#");
			String chapters = breakIndexToC.nextToken();
			String indexs = breakIndexToC.nextToken();
			Scanner ind = new Scanner(indexs);
			indexs = "";//Reset string
			ind.nextLine();//Clear out the blank line from the tokenizer.
			while(ind.hasNext()){
				indexs+=ind.nextLine()+"\n";
			}
			ind.close();
			toc = new TableOfContents(chapters);
			index = new Index(indexs);
			size = toc.getChapters().get(toc.getChapters().size()-1).getEnd();
		}
		
		this.title = title;
		this.author = author;
		this.pubYear = pubYear;
		this.review = review;
		this.numReviews=numReviews;
		
		//TODO: OLD CODE NEEDS TO BE LOOKED OVER
		bars = new ArrayList<HistBar>();
		
		int red = (int) (255 - 25.5 * (2014 - (pubYear)) + .5);
	    if (red < 0)
	      red = 0;
	    else if (red > 255)
	    	red = 255;
	    HistBar redBar = new HistBar("Pub. Year = "+pubYear,red/255.0,Color.red);
	    bars.add(redBar);
	   
	    int green = (int) (51 * review + .5);
	    if (green > 255)
	      green = 255;
	    HistBar greenBar = new HistBar("Review Avg. = "+review,green/255.0,Color.green);
	    bars.add(greenBar);
	    
	    int blue = 5 * numReviews;
	    if (blue > 255)
	      blue = 255;
	    HistBar blueBar = new HistBar("# Reviews = "+numReviews,blue/255.0,Color.blue);
	    bars.add(blueBar);
	    
	    color = new Color(Math.abs(red),Math.abs(green),Math.abs(blue));
	}