Implementing the LocationsController