public static IDynamicArray readFromConsole() {
		Scanner in = new Scanner(System.in);
		if (in.next().equals("Simple")) {
			IDynamicArray array = new SimpleDynamicArray();
			String nextClassName = in.next();
			while (!nextClassName.equals("stopFilling")) {

				if (nextClassName.equals("Animal")) {
					array.add(new Animal(in.nextInt(), in.nextInt()));
				} else if (nextClassName.equals("Human")) {
					array.add(new Human(in.nextInt(), in.nextInt(), in.next()));
				}
				nextClassName = in.next();
			}
			return array;
		} else {
			IDynamicArray array = new LinkedDynamicArray();
			String nextClassName = in.next();
			while (!nextClassName.equals("stopFilling")) {

				if (nextClassName.equals("Animal")) {
					array.add(new Animal(in.nextInt(), in.nextInt()));
				} else if (nextClassName.equals("Human")) {
					array.add(new Human(in.nextInt(), in.nextInt(), in.next()));
				}
				nextClassName = in.next();
			}
			return array;
		}
	}