app as a class