add constructor for book