Hi Sophie,
I think this code snippet is duplicated.
Anyway, great book! I finished reading it yesterday so I thought I’d post some errata and suggestions.