protected void printFileContents(PrintWriter writer) {
		int nrOfConcentrations = times.size();
		int nrOfClusters = clusters.size();
		
		for (int i = 0; i < nrOfConcentrations; i++) {
			writeToFile(times.get(i), false);
			
			for (int j = 0; j < nrOfClusters; j++) {
				List<Integer> timeSerieIndexes = clusters.get(j).getTimeSeriesIndexes();
				int nrOfElementsInCluster = timeSerieIndexes.size();
				
				for (int k = 0; k < nrOfElementsInCluster; k++) {
					if (isLastElement(nrOfClusters, j, nrOfElementsInCluster, k)) {
						writeToFile(timeSeries.get(timeSerieIndexes.get(k)).getConcentrationAt(i), true);
					} else {
						writeToFile(timeSeries.get(timeSerieIndexes.get(k)).getConcentrationAt(i), false);
					}
				}
			}
		}
	}