MainWindow implements View interface. For now, only thread barrier is implemented and method stubs are added.