p2.rb finished

I wonder how Rubyish this is...