public void addAuthor(Author author) {
        if(!authors.contains(author)){
            authors.add(author);
        }
        if(author.getBooks() != null && !author.getBooks().contains(this)){
            author.getBooks().add(this);
        }
    }