Creating the application class and the network connectivity verification method.