private void take(Command command) {
        if (!command.hasSecondWord()) {
            System.out.println("Take what?\n");
            return;
        }
        String name = command.getSecondWord();
        Item item = player.getLocation().getItem(name);
        double freeCapacity = player.getCapacity() - player.getWeight();
        if (item == null) {
            System.out.println("There is no such item in this room.");
        } else if (freeCapacity >= item.getWeight()) {
            System.out.println("You picked up the " + name + ".");
            player.addItem(item);
            player.getLocation().removeItem(name);
        } else {
            double neededCapacity = item.getWeight() - freeCapacity;
            System.out.println("The " + name + " is too heavy! You would need to get rid of " + neededCapacity + " kilograms.");
        }
        System.out.println();
    }