public static String correctRun(String filename, String question) {
        KnowledgeBase kb = new KnowledgeBase();
        try (BufferedReader reader = new BufferedReader(
                                         new InputStreamReader(
                                             new FileInputStream(
                                                 new File(filename)), "UTF8"))) {
            // парсим базу знаний
            String buffer;
            while( ( buffer = reader.readLine() ) != null ) {
                kb.parse(buffer);
            }
            //kb.print();

            // Задаём вопрос решателю
            String answer = new Solver(kb).ask(question);
            // Если ответ получен, то выводим в консоль
            if (answer != null) {
                System.out.println("Answer: " + answer);
            }
        }
        catch (IOException e) { 
            System.out.println("Error: file hasn't been read.");
        }
        return "";
    }