/** Test if aBook is contained in this BookList. * Return true if book is equal to a Book in the list, * false otherwise. */ public bool Contains(Book book) { // code for extra credit foreach (Book aBook in list) { if (aBook.GetTitle() == book.GetTitle() && aBook.GetAuthor() == book.GetAuthor() && aBook.Getyear() == book.Getyear()) { return(true); } } return(false); }