created a model for books