@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Book)) return false;

        Book book = (Book) o;

        if (!authorname.equals(book.authorname)) return false;
        if (!bookName.equals(book.bookName)) return false;
        if (!year.equals(book.year)) return false;

        return true;
    }