Completed rewriting Book class in Swift