public void setName(String name) {
        if (currentName > names.length - 1) {
            String[] tmp = new String[names.length];
            for (int i = 0; i < names.length; i++) {
                tmp[i] = names[i];
            }
            names = new String[names.length * 2];
            for (int i = 0; i < tmp.length; i ++) {
                names[i] = tmp[i];
            }
        }
        names[currentName] = name;
        currentName++;
    }