Multiple files
The above program should be broken up into multiple files. The definitions should be in the header files, the implementation in implementation files. The IMPLEMENT_APP and EVENT_TABLE macros should be in the implementation files for that class.