updating book model