added Apple's Reachability class