The Parts of Speech and Thought

If I said that I was reading a book yesterday afternoon when I suddenly realized I had not yet booked the hotel reservation for my vacation, how is the word book being used grammatically in that statement? Or if an accountant speaks of the book value of a company’s assets, what is the grammar of …