Added Class to check internet connection