public boolean processCommand(Terminal terminal, List<String> words) {

        boolean leave = false;

        if (!words.isEmpty()) {

            switch (words.get(0)) {

            case "borrow":
                terminal.borrow();
                break;

            case "help":
                terminal.help();
                break;

            case "leave":
                terminal.store();
                leave = true;
                break;
            }
        }

        return leave;
    }