added generator closure example