create MainWindow class