foreach_books with nested keys and values displayed