public void start(GuestBookControllerInterface controllerInterface) {
        InputStream inputStream = System.in;
        try (Scanner scanner = new Scanner(inputStream)) {
            while (scanner.hasNextLine()) {
                String nextLine = scanner.nextLine();
                String[] data = nextLine.split(" ");
                switch (data[0].toString()) {
                    case "add":
                        if (data.length > 1) controllerInterface.addRecord(data[1]);
                        break;
                    case "list":
                        List<Record> list = controllerInterface.getRecords();
                        for (Record record : list) {
                            System.out.println(record.id + "  " + record.postDate + "  " + record.postMessage);
                        }
                        break;
                    case "exit":
                        System.exit(0);
                        break;
                    case "erase":
                        controllerInterface.erase();
                        break;
                }
            }
        }
    }