coding #3 deleting properties and adding new methods to the mainwindow class