Added destructor and copy constructor to Application class.