initial books model and defined create function
defined view function for books model