improved example in CookieMonster