Foreach loop to show book, author, etc