Geolocation exercise in ruby