added MainWindow class