public static ArrayList<Term> task1() throws IOException{
		System.out.println("Task 1 initiated.");
		DataBuff reader = new DataBuff(Main.DataFile);
		
		HashMap<String,Term> map = Tools.mapcreator();

		String stringLine = reader.buffer.readLine();
		String[] terms = stringLine.split("\\s+");
		for(int line = 0; (stringLine = reader.buffer.readLine()) != null && line<Main.DataSetSize; line++){
			for(int j=0;j<terms.length;j++){
				Term obj = (Term) map.get(terms[j]);
				if(obj != null){
					obj.numberOfTweets++;
				}
			}
			terms = stringLine.split("\\s+");
		}

		ArrayList<Term> sortByNumberOfTweets = new ArrayList<Term>();
		sortByNumberOfTweets.addAll(map.values());

		Collections.sort(sortByNumberOfTweets, new Comparator<Term>() {
			@Override
			public int compare(Term o1, Term o2){
				if (o1.numberOfTweets < o2.numberOfTweets)
					return 1;
				else if(o1.numberOfTweets == o2.numberOfTweets)
					return o1.text.compareTo(o2.text);
				else
					return -1;
			}
		});
		reader.buffer.close();
		System.out.println("Task 1 terminated." + "\n" + "--------------------");
		return sortByNumberOfTweets;
	}