Write Application class