Remove toString from Pair type
Solve 3-23