Created main window class