I get the same answer as the book, but this program goes through the csv file way too many times