Added solution for analyze_book.py