i implemented the closure example and a class that use both pair and
closure extensions