Closure() working properly