Added a main application class.