Closure function
constructor function