public void add(String message){
        if (length < 10){
            messages[length] = message;
            length++;
        } else {
            for (int i = 0; i < 9; i++){
                messages[i] = messages[i+1];
                messages[9] = message;
            }
        }
    }