Analyze the functions of cities