addBook() implementation added and tested