mainWindow class added.