improved extempore.rb