core data for locations implemented.