added mainwindow class, example graph