Make example/ping.rb a proper tool