Moves Location example to LocationProvider