Finished pi.rb