g variable problem solve and network Reachability class and methods added