public void deleteBookByTitle(final String title) {
        Book bookToDelete = null;
        for (Book book : bookList.getBookList()) {
            if (title.equals(book.getTitle())) {
                bookToDelete = book;
            }
        }
        if (bookToDelete != null) {

            bookList.getBookList().remove(bookToDelete);
        }

        writeBookList();
    }