Adding book model with API methods