public static String classifyFromModel(ArrayList<Word> model, ArrayList<String> email)
	{
		boolean ham;
		//ham is hypothesis, p = 0.5 since training sets of equal size were used
		double probHam = Math.log10(0.5);
		double probSpam = Math.log10(0.5);
		for (String word : email)
		{
			for (Word check : model)
			{
				if (word.equals(check.getName()))
				{
					probHam += Math.log10(check.getHamProb());
					probSpam += Math.log10(check.getSpamProb());
				}
			}
		}
		
		ham = (probHam > probSpam);
		
		if (ham)
		{
			return ("ham   " + probHam + "   " + probSpam);
		}
		else
		{
			return ("spam   " + probHam + "   " + probSpam);
		}
		
	}