Add book's details field and clean code