init window class