Lessons from the chocolate chip cookie