update example with CoreLocation