some test programs in ruby