initializes book class