List<Function> functions = new ArrayList<Function>();
List<Color> lineColors = new LinkedList<Color>();
for (Population pop : this) {
CountFunction func = new CountFunction(pop.getSize());
functions.add(func);
lineColors.add(pop.getType().getColor());
functionMap.put(pop, func);
}