Placed isbn to id code into function (impure)