Replacing perl in city generator