minor changes in TSP example 4