Examples of constructor functions, closures and callbacks