Fixed Exercise 2 addBook function