Code for simple window creation