added problem29
added problem30.rb
fixed problem32