Solution to the city blocks problem.