Adding the definition of the required function for the get city