implemented updating number of copies of book