public void parkVehicle(Vehicle v, int time, int intendedDuration)
			throws SimulationException, VehicleException {

		if (v instanceof Car && ((Car) v).isSmall() == false
				&& spacesAvailable(v) == true) {
			v.enterParkedState(time, intendedDuration);
			spaces.add(v);
			incomingVehicleMonitor(v);
		} else if (v instanceof Car && ((Car) v).isSmall() == true
				&& spacesAvailable(v) == true) {
			v.enterParkedState(time, intendedDuration);
			spaces.add(v);
			incomingVehicleMonitor(v);
		} else if (v instanceof MotorCycle && spacesAvailable(v) == true) {
			v.enterParkedState(time, intendedDuration);
			spaces.add(v);
			incomingVehicleMonitor(v);
		} else
			throw new SimulationException(
					"Vehicle cannot park, as there are no available"
							+ " spaces for that particular vehicle!\n");
	}