window constructor