Moved window class out of main program