add sample of closure (sample 11.8.4)