Each year, the Rochester (Ill.) Public Library sponsors a baking contest — inspired by a book — at the city’s Sparks in the Park Independence Day celebration. This year’s competition, which called for chocolate chip cookies, was based on Laura Joffe Numerof’s “If You Give a Mouse a Cookie.”