Make the app into a class