changed main.m to main.mm, to support C++ style class declaration.