public String toString() {
		String description = null;
		if (!train.isEmpty()) {
			int lastOne = train.size() - 1;
			for (int i = 0; i < lastOne; i++) {
				switch (train.get(i).getClass().getSimpleName()) {
				case (String) LOCOMOTIVE:
					description += ((Locomotive) train.get(i)).toString() + "-";
					break;
				case (String) PASSENGERCAR:
					description += ((PassengerCar) train.get(i)).toString()
							+ "-";
					break;
				case (String) FREIGHTCAR:
					description += ((FreightCar) train.get(i)).toString() + "-";
					break;

				}
			}

			switch (train.get(lastOne).getClass().getSimpleName()) {
			case (String) LOCOMOTIVE:
				description += ((Locomotive) train.get(lastOne)).toString();
				break;
			case (String) PASSENGERCAR:
				description += ((PassengerCar) train.get(lastOne)).toString();
				break;
			case (String) FREIGHTCAR:
				description += ((FreightCar) train.get(lastOne)).toString();
				break;

			}
		}
		return description;
	}