implemented a loop that list each book title and its appending details