step 4 basic closure example