public Book(String title, String author, int numPages, int yearPublished, double reviewScore, int numberOfreviews){
		this.title = title;
		this.author = author;
		this.size = numPages;
		this.pubYear = yearPublished;
		this.review = reviewScore;
		this.numReviews = numberOfreviews;
		//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));
	}