code: static Inventory read(File catalog) throws IOException {
  		try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(catalog))) {
  			return (Inventory)ois.readObject();
  		} catch (IOException | ClassNotFoundException e) {
  			throw new IOException("Failed to read/update file: " + catalog, e);
  		}
  	}
docs: Creates a new inventory from the specified file. See also {@link #write(File)}.
  @param catalog the file containing the inventory
  @return a new inventory instance
  @throws IOException if the file could not be read