Make cm::application a class