My first ruby script. It doesn't work =/. BTW it's modified example from w(p)GtR