The cookie tree