Crime, pollution, and overcrowding in cities