private String[][] parseLines(List<String> lines) {
        int wordsNum = lines.get(0).split("\\s+").length;
        String[][] result = new String [lines.size()][wordsNum];
        int count = 0;
        for(String line: lines) {
            String []words = line.split("\\s+");
            for(int i=0; i<wordsNum; i++){
                result[count][i] = words[i];
            }
            count++;
        }
        return result;
    }