Added AppMain class