Make app into a class