Added some methods to ex48.rb