Move classes into separate files.
Exit the application automatically.

This code can be removed once the GUI is actually used.