public void printInventory() {
        System.out.println("Your inventory consists of: ");
        for (String name : inventory.keySet()) {
            System.out.println("- " + name);
        }
        double freeCapacity = getCapacity() - getWeight();
        System.out.println("It currently weighs " + getWeight() + " kg. You can carry " + freeCapacity + " more kilograms.\n");
    }