Creating factory (constructor) functions with object literals.