'new' builtin function implementation