How are towns and cities classified