Overriding the type of val for the Amount class so that it is an int.
Removing debug code from MainWindow