create application.java as singleton