A Simple extraction of Apple's Reachability sample.