simple use of closure