application in a class