If you found the right code for the phone you have everything to solve the book puzzle too (=
NOO I was SO CLOSE!!! I was guessing the number and guessed the wrong thing...