added book.h and modified the code to include it