Added logic for returning book